﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphTools.OSM
{
    public class OSMRelation : OSMBase
    {
        public class Member
        {
            public string Type { get; set; }
            public int Reference { get; set; }
            public string Role { get; set; }
            
            public Member(string Type, int Reference, string Role)
            {
                this.Type = Type;
                this.Reference = Reference;
                this.Role = Role;
            }
        }
        
        public ICollection<Member> Members { get; set; }

        public OSMRelation(int ID, int Version, DateTime Timestamp, ICollection<Member> Members, IDictionary<string,string> Tags)
            : base(ID,Version,Timestamp,Tags)
        {
            this.Members = Members;
        }

        public OSMRelation(ICollection<Member> Members) : base()
        {
            this.Members = Members;
        }
    }
}
